package com.iot.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author wlr
 * @date 2022/1/6 21:44
 */
public class Sensor {
    private Double value;
    private LocalDateTime time;

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Sensor() {
    }

    public Sensor(Double value, LocalDateTime time) {
        this.value = value;
        this.time = time;
    }
}
